package com.lobstar.xrpc.tools;

import java.util.HashMap;
import java.util.Map;

public class Fields {

	private Map<String,Object> params;

	private Fields() {
		params = new HashMap<>();
	}

	public static Fields build(){
		return new Fields();
	}

	public Fields field(String param,Object value) {
		params.put(param, value);
		return this;
	}

	public Map<String,Object> fields() {
		return params;
	}

	public Fields fields(Map<String,Object> fields) {
		params.putAll(fields);
		return this;
	}
}
